﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：EventData.cs
// 功能描述：TongTongMall
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Timing;

namespace TongTongMall.Events
{

    [Serializable]
    public abstract class EventData : IEventData
    {
        /// <summary>
        /// event创建时间
        /// </summary>
        public DateTime EventTime { get; set; }

        /// <summary>
        /// 事件源允许为空
        /// </summary>
        public object EventSource { get; set; }

        /// <summary>
        /// 是否发布到Mq
        /// </summary>
        public bool IsPublisher { get; set; } = false;

        protected EventData()
        {
            EventTime = Clock.Now;
        }
    }
}
